
export const PARAMS_DELIVER = [
    {
      type: "input",
      field: "goodsName",
      title: "物资名称",
      value: "",
      props: {placeholder:"请输入项目名称"}
    }, 
    {
      type: "input",
      field: "unitName",
      title: "采购单位",
      value: "",
      props: {placeholder:"请输入采购单位"}
    }, 
    {
      type:'el-button',
      field:'search',
      props:{
          type:'primary',
          icon:"el-icon-search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'el-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"el-icon-setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
    {
      type:'el-button',
      field:'batchDeliver',
      props:{
          type:'danger',
          icon:"el-icon-delete"
      },
      children:['批量发货'],
      emit: ['click'],
      emitPrefix: 'btn-deliver-batch',
    }
  ]


export const PARAMS_DELIVER_RECEIVING = [
  {
    type: "input",
    field: "goodsName",
    title: "物资名称",
    value: "",
    props: {placeholder:"请输入项目名称"}
  }, 
  {
    type: "input",
    field: "unitName",
    title: "采购单位",
    value: "",
    props: {placeholder:"请输入采购单位"}
  }, 
  {
    type:'el-button',
    field:'search',
    props:{
        type:'primary',
        icon:"el-icon-search"
    },
    children:['搜索'],
    emit: ['click'],
    emitPrefix: 'btn-search',
  },
  {
    type:'el-button',
    field:'reset',
    props:{
        type:'primary',
        icon:"el-icon-setting"
    },
    children:['重置'],
    emit: ['click'],
    emitPrefix: 'btn-reset',
  }
]
  
  export let FORM_DELIVER_SUPPLIER = [
    {
      type: "input",
      field: "goodsName",
      title: "物资名称",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入物资名称", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "name",
      title: "项目名称",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入项目名称", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "unitName",
      title: "采购单位",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入采购单位", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "remarks",
      title: "发货说明",
      value: "",
      props: { type: "textarea"},
      validate: [
        { required: true, message: "请输入发货说明", trigger: "blur" }
      ]
    }
  ]

  export const FORM_DELIVER_RECEIVING = [
    {
      type: "input",
      field: "goodsName",
      title: "物资名称",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入物资名称", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "name",
      title: "项目名称",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入项目名称", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "unitName",
      title: "采购单位",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入发货单位", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "deliverNum",
      title: "入库数量",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入入库数量", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "spec",
      title: "物资规格",
      value: "",
      props: { type: "text",disabled:true},
      validate: [
        { required: true, message: "请输入物资规格", trigger: "blur" }
      ]
    },
    {
      type: "input",
      field: "remarks",
      title: "入库说明",
      value: "",
      props: { type: "textarea"},
      validate: [
        { required: true, message: "请输入入库说明", trigger: "blur" }
      ]
    }
  ]


export const LABEL_DELIVER = [
  { label: "创建时间", prop: "createTime",width:'150',type:"createTime" },
  { label: "", prop: "",width:"40",type:'checkbox'},
  { label: "项目名称", prop: "name",width:'180',type:"normal"},
  { label: "物资名称", prop: "goodsName",width:'180',type:"normal"},
  { label: "单位", prop:'unit',width:'80',type:"normal"},
  { label: "采购数量", prop:'deliverNum',width:'100',type:"normal"},
  { label: "发货数量", prop:'deliverNum',width:'100',type:"sendDeliverNum"},
  { label: "发货状态", prop:'statusFlag',width:'100',type:"statusFlag"},
  { label: "发货说明", prop:'remarks',width:'200',type:"remarks"},
  { label: "采购单位", prop:'unitName',width:'100',type:"normal"},
  { label: "更新时间", prop: "updateTime",width:'150',type:"updateTime" }
]

export const LABEL_DELIVER_RECEIVING = [
  { label: "创建时间", prop: "createTime",width:'150',type:"createTime" },
  { label: "项目名称", prop: "name",width:'180',type:"normal"},
  { label: "物资名称", prop: "goodsName",width:'180',type:"normal"},
  { label: "单位", prop:'unit',width:'80',type:"normal"},
  { label: "采购数量", prop:'deliverNum',width:'100',type:"normal"},
  { label: "入库数量", prop:'deliverNum',width:'100',type:"receivingDeliverNum"},
  { label: "供应商名称", prop:'supplierName',width:'100',type:"normal"},
  { label: "入库状态", prop:'acceptFlag',width:'100',type:"acceptFlag"},
  { label: "发货说明", prop:'remarks',width:'200',type:"remarks"},
  { label: "入库说明", prop:'putInRemarks',width:'200',type:"putInRemarks"},
  { label: "采购单位", prop:'unitName',width:'100',type:"normal"},
  { label: "更新时间", prop: "updateTime",width:'150',type:"updateTime" }
]



  export const OPTION_INLINE = {
    form: { labelWidth: "" ,inline: true,size:"small"},
    resetBtn: false,
    submitBtn: false
  }
  export const OPTION_BLOCK= {
    form: { labelWidth: "" ,size:"small"},
    row:{gutter: 20},
    resetBtn: false,
    submitBtn: false
  }



